package edu.hcmus.sow.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import edu.hcmus.sow.domain.FileRevision;

/**
 * DAO to manage FileRevision entities.
 * 
 */
public interface FileRevisionDAO extends GenericDAO<FileRevision, Integer> {

   public List<FileRevision> getLatestVersionByFolderID(Integer folderID) throws DataAccessException;

   public List<FileRevision> getRevisionsListByFileID(Integer fileID) throws DataAccessException;

   public FileRevision getLatestVersionByFileID(Integer fileID) throws DataAccessException;
}